import "./App.scss"
import {
  BrowserRouter as Router,
  Route,
  Switch,
  Redirect,
} from "react-router-dom"
import Layout from "@/pages/Layout"
import Login from "@/pages/Login"
function App() {
  return (
    <Router>
      <div className="App">
        <Switch>
          <Redirect exact path="/" to="/home"></Redirect>
          <Route exact path="/login" component={Login}></Route>
          <Route exact path="/home" component={Layout}></Route>
          {/* 当满足path的时候  就会跳到 home页 */}
        </Switch>
      </div>
    </Router>
  )
}

export default App
